<?php
session_start();
require_once('config.php');
if(@$_SESSION['idUser']){
	if($_POST['user_like']=='user_like'){
		echo $tc->insert_user_like($_POST['id'],$_POST['id2']);
	}
	if($_POST['user_like_photo']=='user_like_photo'){
		echo $tc->insert_user_like_photo($_POST['id'],$_POST['id2']);
	}
}